package com.zimi.mapper;

import com.zimi.model.WfTask;
import com.zimi.model.WfTaskVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface WfTaskMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(WfTask record);

    int insertSelective(WfTask record);

    WfTask selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(WfTask record);

    int updateByPrimaryKeyWithBLOBs(WfTask record);

    int updateByPrimaryKey(WfTask record);

    List<WfTask> selectAll(WfTask record);

    List<WfTaskVO> selectMyWfTask(WfTask record);

    @Select("SELECT LAST_INSERT_ID() as id")
    int lastInsertId();
}